package com.cxyzy.basic_libs.effets

import android.app.Activity
import android.content.Context
import android.content.Intent


fun Activity.数字雨() = browseUrl(this, "https://www.jsdaima.com/js/demo/3792.html")
fun Activity.激光射线() = browseUrl(this, "https://www.jsdaima.com/js/demo/3676.html")
fun Activity.炫彩迷宫() = browseUrl(this, "https://www.jsdaima.com/js/demo/3791.html")
fun Activity.烟花() = browseUrl(this, "https://www.jsdaima.com/js/demo/3775.html")
fun Activity.幻彩随我() = browseUrl(this, "https://www.jsdaima.com/js/demo/3776.html")
fun Activity.光点旋转() = browseUrl(this, "https://www.jsdaima.com/js/demo/3587.html")
fun Activity.水滴() = browseUrl(this, "https://www.jsdaima.com/js/demo/3615.html")
fun Activity.彩带飘落() = browseUrl(this, "https://www.jsdaima.com/js/demo/3750.html")
fun Activity.爱心() = browseUrl(this, "https://www.jsdaima.com/js/demo/3319.html")
fun Activity.为爱等待() = browseUrl(this, "https://cxyzy1.gitee.io/album3d/style3/")

fun browseUrl(context: Context, url: String) {
    val intent = Intent(context, WebViewActivity::class.java)
    intent.putExtra("url", url)
    context.startActivity(intent)
}
